<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');


class Pattern_model extends CI_Model {
	
	function just_do_query($sql_schema) {
		
		$r=$this->db->query($sql_schema);
		return $r;
    }
	
	function insert_demand_pair_result($demand_id , $object , $market,$ymdhis_mh5) {
		//echo time();
		
		$array=array(
					"demand_id"=>$demand_id , 
					'object'=>$object , 
					'market'=>$market , 
					'ymdhis_mh5'=>$ymdhis_mh5,
					'ctime'=>time()
					);
		$this->db->insert('h_pair_result',$array);			
		
	}
	
	
	function insert($data){
		
		$this->db->insert('h_pair_result',$data);
		
	}
	
	

}

